package com.example.hellodemo.recyclerView;

import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

import com.example.hellodemo.R;
import com.example.hellodemo.listView.GrideViewActivity;

public class RecyclerViewActivity extends AppCompatActivity {
    private Button linearBtn;
    private Button linearHRBtn ,grideBtn,puBtn;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_recycler_view);
        linearBtn = findViewById(R.id.btn_linear);
        linearBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent =new Intent(RecyclerViewActivity.this,LinearCyclerViewActivity.class);
                startActivity(intent);
            }
        });
        linearHRBtn = findViewById(R.id.btn_linear_or);
        linearHRBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(RecyclerViewActivity.this,LinearHRCyclerViewActivity.class);
                startActivity(intent);
            }
        });
        grideBtn = findViewById(R.id.btn_gride);
        grideBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(RecyclerViewActivity.this, GrideRecyclerViewActivity.class);
                startActivity(intent);
            }
        });
        puBtn = findViewById(R.id.btn_pu);
        puBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(RecyclerViewActivity.this, PuRecyclerViewActivity.class);
                startActivity(intent);
            }
        });

    }
}
